﻿using AutoMapper;
using Leo.Awesome.DictionaryManagement.Domain;
using Leo.Awesome.DictionaryManagement.Dtos;
using Volo.Abp.AutoMapper;

namespace Leo.Awesome.DictionaryManagement.Maps
{
    public class SectionProfile : Profile
    {
        public SectionProfile()
        {
            CreateMap<Section, SectionGetOutPutDto>();

            CreateMap<Section, SectionGetListOutputDto>();

            CreateMap<Section, SectionTreeOutput>();

            CreateMap<SectionGetOutPutDto, Section>()
                .IgnoreFullAuditedObjectProperties();

            CreateMap<Section, SectionCreateUpdateInput>();

            CreateMap<SectionCreateUpdateInput, Section>()
                .IgnoreFullAuditedObjectProperties();


            CreateMap<SectionGetOutPutDto, SectionCreateUpdateInput>();

        }
    }
}
